package com.chucang.shucang.common.security.feign;

import com.chucang.shucang.common.base.constant.SecurityConstant;
import com.chucang.shucang.common.base.utils.R;
import com.chucang.shucang.common.security.feign.vo.BacUserInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @author flitsneak
 * @email flitsneak@gmail.com
 * @date 2022/10/18 11:16
 * @description 管理端用户信息
 */
@FeignClient("shucang-bac")
public interface BacUserDetailService {

    @GetMapping("/bac/manager/getManagerInfoByUsername/{username}")
    R<BacUserInfoVO> getManagerInfoByUsername(@PathVariable("username") String username, @RequestHeader(SecurityConstant.FROM) String from);

}
